package com.sjc.model;

import java.sql.Date;

public class Newsinfo {
	private int nid;
	private String title;
	private String context;
	private Date pubtime;
	private String type;
	private int uid;
	private Userinfo user;
	public Newsinfo(int nid, String title, String context, Date pubtime, String type, int uid, Userinfo user) {
		super();
		this.nid = nid;
		this.title = title;
		this.context = context;
		this.pubtime = pubtime;
		this.type = type;
		this.uid = uid;
		this.user = user;
	}
	public Newsinfo() {
		super();
	}
	public int getNid() {
		return nid;
	}
	public void setNid(int nid) {
		this.nid = nid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public Date getPubtime() {
		return pubtime;
	}
	public void setPubtime(Date pubtime) {
		this.pubtime = pubtime;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public Userinfo getUser() {
		return user;
	}
	public void setUser(Userinfo user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "Newsinfo [nid=" + nid + ", title=" + title + ", context=" + context + ", pubtime=" + pubtime + ", type="
				+ type + ", uid=" + uid + ", user=" + user + "]";
	}
	

}
